package com.example.design.patterns.geekbang.行为型.观察者模式.example.refactor;

import com.example.design.patterns.geekbang.行为型.观察者模式.example.demo.PromotionService;

public class RegPromotionObserver implements RegObserver {
    private PromotionService promotionService; // 依赖注入

    @Override
    public void handleRegSuccess(long userId) {
        promotionService.issueNewUserExperienceCash(userId);
    }
}